<?php	
	// Interface function	
	function oh_module_csv($tokens) {		
		global $oh_object_csv;
		return $oh_object_csv;
	} 

	// Option file required
	
	// Main class of module
	class oh_class_csv {		
		function oh_class_csv() {
		}
		function load($f) {
		}
		function get($filename) {
			$content = file_get_contents($filename);
			return xml2array($content);
		}
		function csv($filename, $array) {
			$array2XML = new CArray2xml2array();
			$array2XML->setArray($array);
		    if($array2XML->saveArray($filename)){        	
  			}
		}
	}
	
	// Main object of module
	global $oh_object_csv;
	$oh_object_csv = new oh_class_csv();
?>
